-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 Mitigates "Projects not being listed on osparc-staging.io" #7836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Mitigates "Projects not being listed on osparc-staging.io" #7836
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7836 +/- ##
==========================================
- Coverage 86.70% 82.54% -4.17%
==========================================
Files 1851 704 -1147
Lines 71968 33587 -38381
Branches 1218 176 -1042
==========================================
- Hits 62403 27724 -34679
+ Misses 9223 5805 -3418
+ Partials 342 58 -284
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
b8581d6 to
02172f7
Compare
odeimaiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great! thanks!
GitHK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
services/web/server/src/simcore_service_webserver/catalog/_catalog_rest_client_service.py
Show resolved
Hide resolved
bf20812 to
0012e8a
Compare
…ervices_with_versions for improved clarity and caching
0012e8a to
f9904d3
Compare
|
@mergify queue |
🟠 Waiting for conditions to match
|
|



What do these changes do?
Mitigates performance bottleneck when retrieving project(s)
Calls to
get_services_for_user_in_productwere causing significant delays, occasionally leading to timeouts when calling the following endpoints:GET /projects/{project_id}GET /projectsThe root cause was a legacy call to a deprecated
catalog RESTendpoint that lists all services for a given user and product. This was originally used to determine whether the services associated with a project were accessible. However, more efficient alternatives are now available (e.g.catalog_service.batch_get_my_services), though the code was never updated.As an interim solution, this PR introduces:
This change significantly improves the performance of the affected endpoints and mitigates the timeout issues reported in #7814.
Related issue/s
get_services_for_user_in_product#7838How to test
Dev-ops